#Add sources from ui directory
file(GLOB_RECURSE SRC_UI ${CMAKE_SOURCE_DIR} "Lvgl_file/*.c")


idf_component_register(SRCS "main.c"
                       SRCS ${SRC_UI}
                       SRCS "user_task/lvgl_task.c"
                    #    SRCS "user_task/sntp_task.c"
                       SRCS "user_task/Dev_task.c"
                       SRCS "wifi/sta.c"
                       SRCS "OTA/m5stack_ota.c"
                       SRCS "data/data.c"
                       SRCS "data/SD_card.c"
                    #    SRCS "modbusTCP/user_Modbus.c"
                    #    SRCS "Device/device1.c"
                       SRCS "Device/devBML04.c"
                       SRCS "Device/devBML12.c"
                       SRCS "Device/devMD8.c"
                       SRCS "Device/devMA8.c"
                       SRCS "Device/devM26.c"
                       SRCS "Device/devM38.c"
                       SRCS "Device/devMLD6.c"
                       SRCS "Device/devPublic.c"
                       SRCS "Device/my_uart.c"
                       SRCS "Device/ledRGB.c"
                       SRCS "system/Env.c"
                       SRCS "system/global.c"
                       SRCS "system/EditFrame.c"
                       INCLUDE_DIRS "./user_task"
                       INCLUDE_DIRS "./wifi"
                       INCLUDE_DIRS "./OTA"
                       INCLUDE_DIRS "./data"
                    #    INCLUDE_DIRS "./modbusTCP"
                       INCLUDE_DIRS "./Device/inc"
                       INCLUDE_DIRS "."
                       INCLUDE_DIRS "Lvgl_file"
                       INCLUDE_DIRS "system/inc"
                       )
